package com.design.proxy.normal;

/**
 * @ClassName GamePlayerProxy.java
 * @Description 代练
 * @author Jon
 * @date 2018年6月14日 上午11:16:06
 */
public class GamePlayerProxy implements IGamePlayer {
	private IGamePlayer iGamePlayer = null;

	public GamePlayerProxy(String username) throws Exception{
		//创建代练时也创建玩家
		iGamePlayer = new GamePlayer(this,username);
	}

	@Override
	public void login(String loginName, String password) {
		iGamePlayer.login(loginName, password);
	}

	@Override
	public void killBoss() {
		iGamePlayer.killBoss();
	}

	@Override
	public void upgrade() {
		iGamePlayer.upgrade();
	}
}
